home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / castools.zip / FUNC8H.ASM < prev    next >
Assembly Source File  |  1990-01-05  |  1KB  |  40 lines

  1. Include multi.inc
  2. Include model.inc
  3.  
  4. ;==============================================================================
  5. ;
  6. ;   CAS function 08h -- Open A File
  7. ;
  8. ;   Format:
  9. ;               int CASDeleteFile (int handle, int file, BYTE queue)
  10. ;   Input:
  11. ;               handle of event, receive file number, queue to search
  12. ;   Output:
  13. ;               Returns 0 if successful or negative error code
  14. ;==============================================================================
  15.  
  16.                 .CODE
  17. CASDeleteFile   PROC    arg1:WORD, arg2:WORD, arg3:BYTE
  18.  
  19.                 push    bx              ; save registers
  20.                 push    cx
  21.                 push    dx
  22.  
  23.                 mov     ax,MUX          ; load multiplex number
  24.                 mov     ah,al           ; move into ah
  25.                 mov     al,08h          ; CAS function 8
  26.                 mov     bx,arg1         ; event handle
  27.                 mov     cx,arg2         ; receive file number
  28.                 mov     dl,arg3         ; queue to search
  29.                 int     2Fh
  30.  
  31.                 pop     dx              ; restore registers
  32.                 pop     cx
  33.                 pop     dx
  34.                 ret
  35. CASDeleteFile   endp
  36.  
  37.                 END
  38.  
  39.  
  40.